import Vue from 'vue'
import Router from 'vue-router'

const _import = require(`./_import_${process.env.NODE_ENV}`)


Vue.use(Router)

/* Layout */
import Layout from '../views/layout/Layout'

export const constantRouterMap = [
  {
    path: '/mb/loginRegister/login',
    name: 'login',
    component: _import('loginRegister/login/index'),
  },

  // 微社区
  {
    path: '/mb/community/',
    component: Layout,
    children: [{
      path: 'video',
      component: _import('community/index'),
      name: 'video',
      meta: {
        title: '视频列表',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'video-detail',
      component: _import('community/components/videoDetail/index'),
      name: 'video-detail',
      meta: {
        title: '视频详情',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'article',
      component: _import('community/index'),
      name: 'article',
      meta: {
        title: '文章列表',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'article-detail',
      component: _import('community/components/articleDetail/index'),
      name: 'article-detail',
      meta: {
        title: '文章详情',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'materialCenter',
      component: _import('community/materialCenter/index'),
      name: 'materialCenter',
      meta: {
        title: '素材中心',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'materialDetail',
      component: _import('community/materialCenter/materialDetail/index'),
      name: 'materialDetail',
      meta: {
        title: '素材详情',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'materialHistory',
      component: _import('community/materialCenter/materialHistory/index'),
      name: 'materialHistory',
      meta: {
        title: '发布历史',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    }]
  },

  // 商品相关
  {
    path: '/mb/item',
    component: Layout,
    children: [{
      path: 'item-list',
      component: _import('item/itemList/index'),
      name: 'item-list',
      meta: {
        title: '商品列表',
        noPublicBottom: true
      }
    }, {
      path: 'item-class-list',
      component: _import('item/itemClassGood/index'),
      name: 'item-class-list',
      meta: {
        title: '商品分类',
        noPublicBottom: true
      }
    }, {
      path: 'item-detail',
      component: _import('item/itemDetail/index'),
      name: 'item-detail',
      meta: {
        title: '商品详情',
        noNavbar: true
      }
    },
    {
      path: 'itemCourse',
      component: _import('item/itemCourse/index'),
      name: 'itemCourse',
      // 课程内页
      meta: {
        title: '\u200E',
        noNavbar: true
      }
    },
    {
      path: 'item-group',
      component: _import('item/itemDetail/index'),
      name: 'item-group',
      meta: {
        title: '拼团详情',
        noNavbar: true
      }
    },
    {
      path: 'itemComment',
      component: _import('item/itemComment/index'),
      name: 'itemComment',
      meta: {
        title: '商品评价'
      }
    }, {
      path: 'shop-car',
      component: _import('item/shopCar/index'),
      name: 'shop-car',
      meta: {
        title: '购物车',
        noPublicBottom: true
        // noNavbar: true
      }
    }, {
      path: 'question-list',
      component: _import('item/questionList/index'),
      name: 'question-list',
      meta: {
        title: '提问列表',
        noPublicBottom: true,
        noNavbar: true
      }
    }, {
      path: 'question-detail',
      component: _import('item/questionDetail/index'),
      name: 'question-detail',
      meta: {
        title: '提问详情',
        noPublicBottom: true,
        noNavbar: true
      }
    }, {
      path: 'question-comment',
      component: _import('item/questionComment/index'),
      name: 'question-comment',
      meta: {
        title: '评论详情',
        noPublicBottom: true,
        noNavbar: true
      }
    }, {
      path: 'question-answer',
      component: _import('item/questionAnswer/index'),
      name: 'question-answer',
      meta: {
        title: '问答',
        noPublicBottom: true,
        noNavbar: true
      }
    }, {
      path: 'itemSaleRecord',
      component: _import('item/itemSaleRecord/index'),
      name: 'itemSaleRecord',
      meta: {
        title: '近期销售记录'
      }
    }, {
      path: 'item-collocate',
      component: _import('item/itemCollocate/index'),
      name: 'item-collocate',
      meta: {
        title: '搭配套餐',
        noNavbar: true
      }
    }, {
      path: 'item-collocate-detail',
      component: _import('item/itemCollocate/detail/detail'),
      name: 'item-collocate-detail',
      meta: {
        title: '搭配套餐详情',
        noNavbar: true
      }
    }, {
      path: 'item-opt',
      component: _import('item/itemOpt/index'),
      name: 'item-opt',
      meta: { title: '打包一口价' }
    }, {
      path: 'item-try',
      component: _import('item/itemTry/index'),
      name: 'item-try',
      meta: {
        title: '商品试用申请',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'item-invite-bargain',
      component: _import('item/itemInviteBargain/index'),
      name: 'item-invite-bargain',
      meta: {
        title: '邀请好友砍价',
        noNavbar: true
      }
    },
    {
      path: 'item-bargain-detail',
      component: _import('item/itemInviteBargain/detail/index'),
      name: 'item-bargain-detail',
      meta: {
        title: '砍价详情',
        noNavbar: true
      }
    }, {
      path: 'group',
      component: _import('item/group/index'),
      name: 'group',
      meta: {
        title: '商品分组'
      }
    }]
  },

  // 签到
  {
    path: '/mb/activity',
    component: Layout,
    children: [{
      path: 'checkin',
      component: _import('activity/checkin/index'),
      name: 'checkin',
      meta: {
        title: '会员签到'
      }
    },
    {
      path: 'myAuction',
      component: _import('activity/auction/myAuction/index'),
      name: 'myAuction',
      meta: {
        title: '我的拍卖'
      }
    },
    {
      path: 'detailAuction',
      component: _import('activity/auction/detailAuction/index'),
      name: 'detailAuction',
      meta: {
        title: '拍卖商品详情'
      }
    },
    {
      path: 'auctionNotice',
      component: _import('activity/auction/auctionNotice/index'),
      name: 'auctionNotice',
      meta: {
        title: '拍卖须知'
      }
    }, {
      path: 'roundList',
      component: _import('activity/auction/roundList/index'),
      name: 'roundList',
      meta: {
        title: '拍卖轮次'
      }
    },
    {
      path: 'margin',
      component: _import('activity/auction/margin/index'),
      name: 'margin',
      meta: {
        title: '保证金'
      }
    }, {
      path: 'auctionLobby',
      component: _import('activity/auction/auctionLobby/index'),
      name: 'auctionLobby',
      meta: {
        title: '出价大厅'
      }
    }, {
      path: 'payAuction',
      component: _import('activity/auction/payAuction/index'),
      name: 'payAuction',
      meta: {
        title: '拍卖订单详情'
      }
    }, {
      path: 'universalForm',
      component: _import('activity/universalForm/index'),
      name: 'universalForm',
      meta: {
        title: '万能表单',
        noPublicBottom: true
      }
    },
    {
      path: 'groupSolitaire',
      component: _import('activity/groupSolitaire/index'),
      name: 'groupSolitaire',
      meta: {
        title: '\u200E',
        noPublicBottom: true,
        noNavbar: true,
        keepAlive: true
      }
    },
    {
      path: 'solitairePoster',
      component: _import('activity/groupSolitaire/solitairePoster/index'),
      name: 'solitairePoster',
      meta: {
        title: '\u200E',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },{
      path: 'couponCode',
      component: _import('activity/couponCode/index'),
      name: 'couponCode',
      meta: {
        title: '优惠券码',
        noPublicBottom: true,
        noNavbar: true
      }
    },
    {
      // 0元抽奖
      path: 'luckDraw',
      component: _import('activity/luckDraw/index'),
      name: 'luckDraw',
      meta: {
        title: '0元抽奖',
        noPublicBottom: true,
        noNavbar: true
      }
    },
    {
      // 0元抽奖
      path: 'luckDrawEnd',
      component: _import('activity/luckDrawEnd/index'),
      name: 'luckDrawEnd',
      meta: {
        title: '0元抽奖',
        noPublicBottom: true,
        noNavbar: true
      }
    },{
      // 0元抽奖
      path: 'luckDrawPrize',
      component: _import('activity/luckDrawPrize/index'),
      name: 'luckDrawPrize',
      meta: {
        title: '中奖页面',
        noPublicBottom: true,
        noNavbar: true
      }
    }]
  },

  // 会员中心
  {
    path: '/mb/user',
    component: Layout,
    redirect: '/mb/user/member',
    children: [{
      path: 'member',
      component: _import('user/member/index'),
      name: 'member',
      meta: { title: '会员中心' }
    }, {
      path: 'mycoupon',
      component: _import('user/member/mycoupon/index'),
      name: 'mycoupon',
      meta: { title: '我的优惠券' }
    }, {
      path: 'shareCoupon',
      component: _import('user/member/shareCoupon/index'),
      name: 'shareCoupon',
      meta: {
        title: '我的优惠券',
        noPublicBottom: true,
        // noNavbar: true
      }
    }, {
      path: 'exchange-coupon',
      component: _import('user/member/mycoupon/activity/index'),
      name: 'exchange-coupon',
      meta: { title: '兑换优惠券' }
    }, {
      path: 'couponVerify',
      component: _import('user/member/couponVerify/index'),
      name: 'couponVerify',
      meta: { title: '核销优惠券' }
      }, {
      path: 'transferRecords',
      component: _import('user/member/transferRecords/index'),
      name: 'transferRecords',
      meta: { title: '转赠记录' }
    }, {
      path: 'claimCoupons',
      component: _import('user/member/claimCoupons/index'),
      name: 'claimCoupons',
      meta: { title: '领取优惠券' }
      },
    {
      path: 'storeInventory',
      component: _import('user/member/storeInventory/index'),
      name: 'storeInventory',
      meta: { title: '门店库存' }
    },{
      path: 'couponVerifyResult',
      component: _import('user/member/couponVerifyResult/index'),
      name: 'couponVerifyResult',
      meta: { title: '核销优惠券结果页' }
    }, {
      path: 'commentList',
      component: _import('user/member/commentList/index'),
      name: 'commentList',
      meta: { title: '待评价商品' }
    }, {
      path: 'goodsComment',
      component: _import('user/member/goodsComment/index'),
      name: 'goods-comment',
      meta: { title: '评价商品' }
    }, {
      path: 'shareOrder',
      component: _import('user/member/shareOrder/index'),
      name: 'share-order',
      meta: { title: '晒单' }
    },{
      path: 'collectionGoods',
      component: _import('user/member/collectionGoods/index'),
      name: 'collection-goods',
      meta: { title: '已收藏商品' }
    }, {
      path: 'balanceTx',
      component: _import('user/member/balanceTx/index'),
      name: 'balance-tx',
      meta: { title: '\u200E', }
    }, {
      path: 'certification',
      component: _import('user/member/enterpriseTx/certification/index'),
      name: 'certification',
      meta: {
        title: '企业认证',
        noNavbar: true
      }
    }, {
      path: 'certification-reviewing',
      component: _import('user/member/enterpriseTx/certification/reviewing'),
      name: 'certificationReviewing',
      meta: {
        title: '企业认证',
        noNavbar: true
      }
    }, {
      path: 'certification-review-fail',
      component: _import('user/member/enterpriseTx/certification/reviewFail'),
      name: 'certificationReviewFail',
      meta: {
        title: '企业认证',
        noNavbar: true
      }
    }, {
      path: 'certification-review-success',
      component: _import('user/member/enterpriseTx/certification/reviewSuccess'),
      name: 'certificationReviewSuccess',
      meta: {
        title: '企业认证',
        noNavbar: true
      }
    }, { // 云账户签约
      path: 'cloundQualification',
      component: _import('user/member/cloundQualification/index'),
      name: 'cloundQualification',
      meta: {
        title: '签约',
        noNavbar: true
      }
    }, {
      // 通联分账签约认证
      path: 'tlQualification',
      component: _import('user/member/tlQualification/index'),
      name: 'tlQualification',
      meta: {
        title: '签约',
        noNavbar: true
      }
    },{
      path: 'enterpriseTx-applyCash',
      component: _import('user/member/enterpriseTx/applyCash/index'),
      name: 'enterpriseTx-applyCash',
      meta: {
        title: '申请提现',
        noNavbar: true
      }
    }, {
      path: 'withdrawalsRecord',
      component: _import('user/fxs/withdrawalsRecord/index'),
      name: 'withdrawals-record',
      meta: { title: '提现明细' }
    },
    {
      path: 'paymentRecord',
      component: _import('user/fxs/paymentRecord/index'),
      name: 'paymentRecord',
      meta: { title: '打款明细' }
    }, 
    {
      path: 'point',
      component: _import('user/member/point/index'),
      name: 'point',
      meta: { title: '积分' }
    },
    {
      path: 'pointRedPacket',
      component: _import('user/member/pointRedPacket/index'),
      name: 'point-red-packet',
      meta: { title: '积分兑换红包' }
    },
    {
      path: 'pointExchange',
      component: _import('user/member/pointExchange/index'),
      name: 'point-exchange',
      meta: { title: '积分兑换商品' }
    },
    {
      path: 'exchangeDetail',
      component: _import('item/itemDetail/detailWrapper/exchangeDetail/index'),
      name: 'exchangeDetail',
      // 积分兑换商品详情
      meta: {
        title: '商品详情',
        noNavbar: true
      }
    },
    {
      path: 'pointCart',
      component: _import('user/member/pointCart/index'),
      name: 'point-cart',
      // 积分兑换商品购物车
      meta: {
        title: '兑换清单',
        noNavbar: true
      }
    },
    {
      path: 'pointBuy',
      component: _import('user/member/pointBuy/index'),
      name: 'point-buy',
      meta: {
        title: '积分订单结算',
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'pointOrder',
      component: _import('user/member/pointOrder/index'),
      name: 'point-order',
      meta: { title: '积分兑换商品订单' }
    },
    {
      path: 'pointOrderDetail',
      component: _import('user/member/pointOrderDetail/index'),
      name: 'pointOrderDetail',
      meta: {
        title: '积分兑换商品订单详情',
        noNavbar: true
      }
    },
    {
      path: 'pointOrderRefunding',
      component: _import('user/member/pointOrderDetail/refunding/index'),
      name: 'pointOrderRefunding',
      meta: {
        title: '积分兑换商品退款',
        noNavbar: true
      }
    },
    {
      path: 'pointRank',
      component: _import('user/member/pointRank/index'),
      name: 'point-rank',
      meta: { title: '积分排行' }
    },
    {
      path: 'virtualCurrency',
      component: _import('user/member/virtualCurrency/index'),
      name: 'virtual-currency',
      meta: { title: '虚拟币' }
    },
    {
      path: 'virtualCurrencyRank',
      component: _import('user/member/virtualCurrencyRank/index'),
      name: 'virtual-currency-rank',
      meta: { title: '虚拟币排行' }
    },
    {
      path: 'rechargeList',
      component: _import('user/member/rechargeList/index'),
      name: 'rechargeList',
      meta: { title: '账户充值' }
    },
    {
      path: 'recharge-proof',
      component: _import('user/member/rechargeList/rechargeProof/index'),
      name: 'recharge-proof',
      meta: { title: '上传凭证' }
    },
    {
      path: 'collectionShop',
      component: _import('user/member/collectionShop/index'),
      name: 'collection-shop',
      meta: { title: '已收藏店铺' }
    },
    {
      path: 'changeUserData',
      component: _import('user/member/changeUserData/index'),
      name: 'change-user-data',
      meta: { title: '修改资料' }
    }, {
      path: 'resetPassword',
      component: _import('user/member/resetPassword/index'),
      name: 'reset-password',
      meta: {
        title: '重置密码',
        noNavbar: true
      }
    }, {
      path: 'addressList',
      component: _import('user/member/addressList/index'),
      name: 'address-list',
      meta: {
        title: '地址管理',
        noPublicBottom: true,
        noNavbar: true
      }
    },
    {
      path: 'memberBenefits',
      component: _import('user/member/memberBenefits/index'),
      name: 'member-benefits',
      meta: { title: '会员权益' }
    },
    {
      path: 'upGrade',
      component: _import('user/member/upGrade/index'),
      name: 'up-grade',
      meta: { title: '我要升级' }
    },
    {
      path: 'myFriend',
      component: _import('user/member/myFriend/index'),
      name: 'my-friend',
      meta: { title: '我的朋友' }
    },
    {
      path: 'cardDetail',
      component: _import('user/member/cardDetail/index'),
      name: 'card-detail',
      meta: { title: '会员卡' }
    },
    {
      path: 'receiveCard',
      component: _import('user/member/receiveCard/index'),
      name: 'receive-card',
      meta: { title: '会员卡领取' }
    },
    {
      path: 'cardList',
      component: _import('user/member/cardList/index'),
      name: 'card-list',
      meta: { title: '会员卡列表' }
    },
    {
      path: 'card-record',
      component: _import('user/member/cardRecord/index'),
      name: 'card-record',
      meta: { title: '购买记录' }
    },
    // 会员中心我的上级
    {
      path: 'userSupplier',
      component: _import('user/member/userSupplier/index'),
      name: 'user-supplier',
      meta: { title: '我的上级' }
    }, {
      path: 'upgrade-lv',
      component: _import('user/member/upgradeLv/index'),
      name: 'upgrade-lv',
      meta: { title: '会员中心' }
    }, {
      path: 'my-serve',
      component: _import('user/member/my-serve/index'),
      name: 'my-serve',
      meta: { title: '我的服务' }
    },{
      path: 'myCourse',
      component: _import('user/member/myCourse/index'),
      name: 'myCourse',
      meta: { title: '我的课程' }
    },
    {
      path: 'courseList',
      component: _import('user/member/courseList/index'),
      name: 'courseList',
      meta: { title: '专栏目录' }
    },{
      path: 'letter',
      component: _import('user/letter/index'),
      name: 'letter',
      meta: { title: '站内信' }
    }, {
      path: 'letterDetail',
      component: _import('user/letterDetail/index'),
      name: 'letterDetail',
      meta: { title: '消息详情' }
    }, {
      path: 'tryList',
      component: _import('user/member/tryList/index'),
      name: 'tryList',
      meta: { title: '试用活动' }
    },
    {
      path: 'tryListDetail',
      component: _import('user/member/tryListDetail/index'),
      name: 'tryListDetail',
      meta: { title: '试用活动订单详情' }
    },
    {
      path: 'tryComment',
      component: _import('user/member/tryComment/index'),
      name: 'tryComment',
      meta: { title: '试用活动报告' }
    },
    // 分销商中心
    {
      path: 'fxs',
      component: _import('user/fxs/index'),
      name: 'user-fxs',
      meta: { title: '分销中心' }
    }, {
      path: 'agentList',
      component: _import('user/fxs/agentList/index'),
      name: 'agent-list',
      meta: { title: '分销专题' }
    },
    // 通联、汇付开户
    {
      path: 'openingSeparateAccount',
      component: _import('user/fxs/myCommission/openingSeparateAccount/index'),
      name: 'openingSeparateAccount',
      meta: {
        title: '开户',
        noNavbar: true
      }
    },
    {
      path: 'nextLevelAgent',
      component: _import('user/fxs/nextLevelAgent/index'),
      name: 'next-level-agent',
      meta: { title: '我的团长' }
    },
    {
      path: 'nextLevelUser',
      component: _import('user/fxs/nextLevelUser/index'),
      name: 'next-level-user',
      meta: { title: '我的会员' }
    },
    {
      path: 'fenxiaoOrder',
      component: _import('user/fxs/fenxiaoOrder/index'),
      name: 'fenxiao-order',
      meta: { title: '分销订单' }
    },
    {
      path: 'fenxiaoOrderDetail',
      component: _import('user/fxs/fenxiaoOrderDetail/index'),
      name: 'fenxiao-order-detail',
      meta: { title: '订单商品明细' }
    },
    {
      path: 'store',
      component: _import('user/fxs/store/index'),
      name: 'store',
      meta: { title: '店中店' }
    },
    {
      path: 'myCommission',
      component: _import('user/fxs/myCommission/index'),
      name: 'my-commission',
      meta: { title: '我的佣金' }
    },
    {
      path: 'commissionSort',
      component: _import('user/fxs/commissionSort/index'),
      name: 'commission-sort',
      meta: { title: '上月佣金排行' }
    },
    {
      path: 'commissionContent',
      component: _import('user/fxs/commissionContent/index'),
      name: 'commission-content',
      meta: { title: '业绩统计' }
    },
    {
      path: 'fxsDirectorr',
      component: _import('user/fxs/director/index'),
      name: 'fxs-director',
      meta: { title: '我的上级' }
    },
    {
      path: 'fxCard',
      component: _import('user/fxs/fxCard/index'),
      name: 'fx-card',
      meta: { title: '我的名片', noNavbar: true }
    },
    {
      path: 'dhsCard',
      component: _import('user/dhs/dhsCard/index'),
      name: 'dhscard',
      meta: { title: '我的名片', noNavbar: true }
    },
    {
      path: 'fenxiaoGoods',
      component: _import('user/fxs/fenxiaoGoods/index'),
      name: 'fenxiao-goods',
      meta: { title: '分销产品' }
    },
    // 代理商中心
    {
      path: 'dls',
      component: _import('user/dls/index'),
      name: 'user-dls',
      meta: { title: '代理中心' }
    }, {
      path: 'dlsGoods',
      component: _import('user/dls/dlsGoods/index'),
      name: 'dls-goods',
      meta: { title: '代理产品' }
    }, {
      path: 'nextLevelAgency',
      component: _import('user/dls/nextLevelAgency/index'),
      name: 'next-level-agency',
      meta: { title: '代理商' }
    }, {
      path: 'nextLevelAgencyUser',
      component: _import('user/dls/nextLevelAgencyUser/index'),
      name: 'next-level-agency-user',
      meta: { title: '我的会员' }
    }, {
      path: 'agencyOrder',
      component: _import('user/dls/agencyOrder/index'),
      name: 'agency-order',
      meta: { title: '团队订单' }
    }, {
      path: 'agencyOrderDetail',
      component: _import('user/dls/agencyOrderDetail/index'),
      name: 'agency-order-detail',
      meta: { title: '订单商品明细' }
    }, {
      path: 'dlsRecommend',
      component: _import('user/dls/dlsRecommend/index'),
      name: 'dls-recommend',
      meta: { title: '推荐列表' }
    }, {
      path: 'dlsTeamHorizontalPush',
      component: _import('user/dls/dlsTeamHorizontalPush/index'),
      name: 'dls-team-horizontal-push',
      meta: { title: '团队平推' }
    }, {
      path: 'dlsSaleRewardOrder',
      component: _import('user/dls/dlsSaleRewardOrder/index'),
      name: 'dls-sale-reward-order',
      meta: { title: '销售奖订单' }
    }, {
      path: 'dlsSaleRewardOrderDetail',
      component: _import('user/dls/dlsSaleRewardOrderDetail/index'),
      name: 'dls-sale-reward-order-detail',
      meta: { title: '销售奖订单详情' }
    }, {
      path: 'dlsYeJi',
      component: _import('user/dls/dlsYeJi/index'),
      name: 'dls-YeJi',
      meta: { title: '代理商团队业绩' }
    }, {
      path: 'parentInfo',
      component: _import('user/parentInfo/index'),
      name: 'parentInfo',
      meta: { title: '上级代理商' } // 我的上级订货商共用
    }, {
      path: 'dlsGlj',
      component: _import('user/dls/dlsGlj/index'),
      name: 'dls-Glj',
      meta: { title: '代理商团队管理业绩' }
    }, {
      path: 'dlsGljDetail',
      component: _import('user/dls/dlsGljDetail/index'),
      name: 'dls-Glj-detail',
      meta: { title: '代理商团队管理业绩详情' }
    }, {
      path: 'DlsSalesSort',
      component: _import('user/dls/DlsSalesSort/index'),
      name: 'dls-SalesSort',
      meta: { title: '出单量排行' }
    },
    {
      path: 'dlsCard',
      component: _import('user/dls/dlsCard/index'),
      name: 'dlsCard',
      meta: { title: '我的名片', noNavbar: true }
    },
    // 订货商中心
    {
      path: 'dhs',
      component: _import('user/dhs/index'),
      name: 'user-dhs',
      meta: { title: '订货商中心' }
    }, {
      path: 'myStore',
      component: _import('user/dhs/myStore/index'),
      name: 'my-store',
      //虚拟库存
      meta: { title: '库存' }
    },
    {
      path: 'dhsGoods',
      component: _import('user/dhs/dhsGoods/index'),
      name: 'dhsGoods',
      meta: { title: '订货商品' }
    },
    {
      path: 'DhsSalesSort',
      component: _import('user/dhs/DhsSalesSort/index'),
      name: 'dhs-SalesSort',
      meta: { title: '出单量排行' }
    },
    {
      path: 'dhsDeposit',
      component: _import('user/dhs/dhsDeposit/index'),
      name: 'dhs-deposit',
      meta: { title: '我的预存款' }
    },
    {
      path: 'venderOrder',
      component: _import('user/dhs/venderOrder/index'),
      name: 'vender-order',
      meta: { title: '团队订单' }
    },
    {
      path: 'venderOrderDetail',
      component: _import('user/dhs/venderOrderDetail/index'),
      name: 'vender-order-detail',
      meta: { title: '团队订单详情' }
    },
    {
      path: 'nextLevelVenderUser',
      component: _import('user/dhs/nextLevelVenderUser/index'),
      name: 'next-level-vender-user',
      meta: { title: '我的会员' }
    },
    {
      path: 'nextLevelVender',
      component: _import('user/dhs/nextLevelVender/index'),
      name: 'next-vender-agency',
      meta: { title: '下级订货商' }
    },
    {
      path: 'dhsOrderRank',
      component: _import('user/dhs/dhsOrderRank/index'),
      name: 'dhs-Order-Rank',
      meta: { title: '订货商团队订单排行' }
    },
    {
      path: 'dhsEntityOrder',
      component: _import('user/dhs/dhsEntityOrder/index'),
      name: 'dhsEntityOrder',
      meta: { title: '实体库存订单' }
    },
    {
      path: 'dhsGlj',
      component: _import('user/dhs/dhsGlj/index'),
      name: 'dhs-Glj',
      meta: { title: '订货商团队管理业绩' }
    },
    {
      path: 'dhsGljDetail',
      component: _import('user/dhs/dhsGljDetail/index'),
      name: 'dhs-Glj-detail',
      meta: { title: '订货商团队管理业绩详情' }
    },
    {
      path: 'dhsYeJi',
      component: _import('user/dhs/dhsYeJi/index'),
      name: 'dhs-YeJi',
      meta: { title: '团队业绩' }
    },
    {
      path: 'dhsRecommend',
      component: _import('user/dhs/dhsRecommend/index'),
      name: 'dhs-Recommend',
      meta: { title: '推荐列表' }
    },
    {
      path: 'dhsSaleRewardOrder',
      component: _import('user/dhs/dhsSaleRewardOrder/index'),
      name: 'dhs-sale-reward-order',
      meta: { title: '销售奖订单' }
    },
    {
      path: 'dhsSaleRewardOrderDetail',
      component: _import('user/dhs/dhsSaleRewardOrderDetail/index'),
      name: 'dhs-sale-reward-order-detail',
      meta: { title: '销售奖订单详情' }
    },
    {
      path: 'bjhBalance',
      component: _import('dzWeb/bjhBalance/index'),
      name: 'bjhBalance',
      meta: { title: '百佳华-余额明细' }
    },
    // 待收益展示 定制
    {
      path: 'dzPendingIncome',
      component: _import('dzWeb/dzPendingIncome/index'),
      name: 'dzPendingIncome',
      meta: {
        title: '待收益展示',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },
    /* 销售奖 */
    {
      path: 'dzDhsSaleReward',
      component: _import('user/dhs/dzDhsSaleReward/index'),
      name: 'dz-dhs-sale-reward',
      meta: { title: '销售奖' }
    },
    {
      path: 'holdOrder',
      component: _import('dzWeb/Yunj/holdOrder/index'),
      name: 'holdOrder',
      meta: { title: '挂起订单' }
    },
    {
      path: 'ltnsOrderDetail',
      component: _import('dzWeb/order/ltnsOrderDetail/index'),
      name: 'ltnsOrderDetail',
      meta: { title: '订单详情' }
    },
    {
      path: 'physicalDetail',
      component: _import('dzWeb/order/physicalDetail/index'),
      name: 'physicalDetail',
      meta: { title: '物流详情' }
    },
    {
      path: 'ltnsDhsxjSelect',
      component: _import('user/dhs/ltnsDhsxjSelect/index'),
      name: 'ltnsDhsxjSelect',
      meta: { title: '下级协议查询' }
    },
    {
      path: 'ltnsDhsthSh',
      component: _import('user/dhs/ltnsDhsthSh/index'),
      name: 'ltnsDhsthSh',
      meta: { title: '退换货审核' }
      },
    {
      path: 'ltnsDhsAddress',
      component: _import('user/dhs/ltnsDhsAddress/index'),
      name: 'ltnsDhsAddress',
      meta: { title: '地址' }
    },
    {
      path: 'virtualVenderOrder',
      component: _import('user/dhs/virtualVenderOrder/index'),
      name: 'virtual-vender-order',
      meta: { title: '下级虚拟订单' }
    },
    // 子容
    {
      path: 'shareCouponList',
      componsnt: _import('dzWeb/zRong/shareCouponList/index'),
      name: 'shareCouponList',
      meta: { title: '分享优惠券列表' }
    },
    {
      path: 'receiveShareCoupon',
      componsnt: _import('dzWeb/zRong/receiveShareCoupon/index'),
      name: 'receiveShareCoupon',
      meta: { title: '领取优惠券' }
    },
    // 定制 贵州己乐识界信息科技 分红奖励 start
    {
      path: 'jljsBonus',
      name: 'jljsBonus',
      component: _import('dzWeb/jljs/bonus/index'),
      meta: {
        title: '分红奖励',
        noNavbar: true,
        noPublicBottom: true
      }
    },
    {
      path: 'jljsHistory',
      name: 'jljsHistory',
      component: _import('dzWeb/jljs/history/index'),
      meta: {
        title: '活动详情',
        noNavbar: true,
        noPublicBottom: true
      }
    },
    // 定制 贵州己乐识界信息科技 分红奖励 end
    // 定制 处方药 -- 用药人信息
    {
      path: 'prescriptionInformation',
      component: _import('dzWeb/prescription/index'),
      name: 'prescriptionInformation',
      meta: { title: '用药人信息' }
    },
    // 定制 处方药 -- 问诊记录
    {
      path: 'prescriptionList',
      component: _import('dzWeb/prescription/list'),
      name: 'prescriptionList',
      meta: { title: '问诊记录' }
    },
    // 定制  分红奖励 end
    {
      path: 'dzFenHong',
      name: 'dzFenHong',
      component: _import('dzWeb/dzFenHong/index'),
      meta: {
        title: '分红奖励',
        noNavbar: true,
        noPublicBottom: true
      }
    },
    // 员工中心
    {
      path: 'staff-center',
      component: _import('user/staffCenter/index'),
      name: 'staff-center',
      meta: { title: '员工中心' }
    },
    {
      path: 'staff-goods',
      component: _import('user/staffCenter/staffGoods/index'),
      name: 'staff-goods',
      meta: { title: '员工产品' }
    },
    {
      path: 'staff-level-agent',
      component: _import('user/staffCenter/staffLevelAgent/index'),
      name: 'staff-level-agent',
      meta: { title: '分销商' }
    },
    {
      path: 'staff-level-user',
      component: _import('user/staffCenter/staffLevelUser/index'),
      name: 'staff-level-user',
      meta: { title: '员工会员' }
    },
    {
      path: 'staff-order',
      component: _import('user/staffCenter/staffOrder/index'),
      name: 'staff-order',
      meta: { title: '团队订单' }
    },
    {
      path: 'staff-list',
      component: _import('user/staffCenter/staffList/index'),
      name: 'staff-list',
      meta: { title: '我的员工' }
    },
    {
      path: 'director',
      component: _import('user/staffCenter/director/index'),
      name: 'director',
      meta: { title: '我的上级' }
    },
    {
      path: 'protocolList',
      component: _import('user/protocolList/index'),
      name: 'protocolList',
      meta: { title: '协议列表' }
    },
    // 门店中心
    {
      path: 'store-center',
      component: _import('user/storeCenter/index'),
      name: 'store-center',
      meta: { title: '门店中心' }
    },
    {
      path: 'storeGoods',
      component: _import('user/storeCenter/storeGoods/index'),
      name: 'store-goods',
      meta: { title: '门店产品' }
    },
    {
      path: 'storeLevelAgent',
      component: _import('user/storeCenter/storeLevelAgent/index'),
      name: 'store-level-agent',
      meta: { title: '门店团长' }
    },
    {
      path: 'storeLevelUser',
      component: _import('user/storeCenter/storeLevelUser/index'),
      name: 'store-level-user',
      meta: { title: '门店会员' }
    },
    {
      path: 'storeOrder',
      component: _import('user/storeCenter/storeOrder/index'),
      name: 'store-order',
      meta: { title: '团队订单' }
    },
    {
      path: 'storeOrderDetail',
      component: _import('user/storeCenter/storeOrderDetail/index'),
      name: 'store-order-detail',
      meta: { title: '团队订单详情' }
    },
    {
      path: 'storeOrderList',
      component: _import('user/storeCenter/storeOrderList/index'),
      name: 'storeOrderList',
      meta: { title: '门店订单' }
    },
    // 核销优惠券
    {
      path: 'writeOffCoupons',
      component: _import('user/member/writeOffCoupons/index'),
      name: 'writeOffCoupons',
      meta: { title: '核销优惠券' }
    },
    {
      path: 'storeOrderListDetail',
      component: _import('user/storeCenter/storeOrderListDetail/index'),
      name: 'storeOrderListDetail',
      meta: { title: '订单详情' }
    },
    {
      path: 'serve-order',
      component: _import('user/storeCenter/serveOrder/index'),
      name: 'serve-order',
      meta: { title: '服务订单' }
    },
    // 供应商中心
    {
      path: 'gys',
      component: _import('user/gys/index'),
      name: 'user-gys',
      meta: { title: '供应商中心' }
    },
    {
      path: 'tgyOrder',
      component: _import('user/gys/tgyOrder/index'),
      name: 'tgy-order',
      meta: { title: '招商经理订单' }
    },
    {
      path: 'tgyRecommendGys',
      component: _import('user/gys/tgyRecommendGys/index'),
      name: 'tgy-recommend-gys',
      meta: { title: '推荐供应商' }
    },
    {
      path: 'listsGys',
      component: _import('user/gys/listsGys/index'),
      name: 'lists-gys',
      meta: { title: '供应商订单' }
    },
    {
      path: 'tgyOrderDetail',
      component: _import('user/gys/tgyOrder/detail/index'),
      name: 'tgy-order-detail',
      meta: { title: '订单商品明细' }
    },
    {
      path: 'supplierItems',
      component: _import('user/gys/supplierItems/index'),
      name: 'supplier-Items',
      meta: { title: '供应商商品' }
    },
    {
      path: 'supplierDrafts',
      component: _import('user/gys/supplierItems/supplierDrafts/index'),
      name: 'supplierDrafts',
      meta: { title: '我的草稿' }
    },
    {
      path: 'supplierAddItem',
      component: _import('user/gys/supplierAddItem/index'),
      name: 'supplier-addItem',
      meta: { title: '添加商品' }
    },
    {
      path: 'supplierWithdraw',
      component: _import('user/gys/supplierWithdraw/index'),
      name: 'supplier-Withdraw',
      meta: { title: '供应商佣金提现' }
    },
    ]
  },
  // 链动中心
  {
    path: '/mb/user',
    component: Layout,
    redirect: '/mb/user/link',
    children: [{
      path: 'link',
      component: _import('user/link/index'),
      name: 'linkCenter',
      meta: { title: '链动中心' }
    },
    // x循环
    {
      path: 'xLoop',
      component: _import('user/xLoop/index'),
      name: 'xLoop',
      meta: { title: '详情' }
    }, {
      path: 'xLoopSuperior',
      component: _import('user/xLoop/xLoopSuperior'),
      name: 'xLoopSuperior',
      meta: { title: '我的上级' }
    }, {
      path: 'xLoopDetail',
      component: _import('user/xLoop/xLoopDetail'),
      name: 'xLoopDetail',
      meta: { title: '推广详情' }
    },
    // 三三复制
    {
      path: 'xxReplicateCenter',
      component: _import('user/xxReplicateCenter/index'),
      name: 'xxReplicateCenter',
      meta: { title: '复制中心' }
      },
      // 排队免单列表
      {
        path: 'freeQueuing',
        component: _import('user/freeQueuing/index'),
        name: 'freeQueuing',
        meta: {
          title: '我的奖励'
        }
      },
      // 排队免单详情
      {
        path: 'freeQueuingDetails',
        component: _import('user/freeQueuing/details/index'),
        name: 'freeQueuingDetails',
        meta: { title: '详情' }
      },
      // 礼品卡
      {
        path: 'giftCard',
        component: _import('user/giftCard/index'),
        name: 'giftCard',
        meta: {
          title: '礼品卡',
          noNavbar: true,
          noPublicBottom: true,
          noSideWidget: true,
          noZcServie: true
        }
      },
      {
        path: 'giftCardBuy',
        component: _import('user/giftCard/buy'),
        name: 'giftCardBuy',
        meta: {
          title: '结算中心',
          noNavbar: true,
          noPublicBottom: true,
          noSideWidget: true,
          noZcServie: true
        }
      }]
  },
  // 直播列表
  {
    path: '/mb/user',
    component: Layout,
    redirect: '/mb/user/liveList',
    children: [{
      path: 'liveList',
      component: _import('user/live/index'),
      name: 'liveList',
      meta: { title: '直播列表' }
    },
    {
      path: 'bindShare',
      component: _import('user/live/bindShare'),
      name: 'bindShare',
      meta: {
        title: '申请成为分享员',
        noNavbar: true,
        noPublicBottom: true,
        noSideWidget: true,
        noZcServie: true
      }
      }, {
        path: 'userAgreement',
        component: _import('user/securityPrivacy/privacyAgreement'),
        name: 'userAgreement',
        meta: {
          title: '用户协议',
          noNavbar: true,
          noPublicBottom: true,
          noSideWidget: true
        }
      },
      {
        path: 'privacyAgreement',
        component: _import('user/securityPrivacy/privacyAgreement'),
        name: 'privacyAgreement',
        meta: {
          title: '隐私协议',
          noNavbar: true,
          noPublicBottom: true,
          noSideWidget: true
        }
      },]
  },
  // 订单转换
  {
    path: '/mb/convert',
    component: Layout,
    redirect: '/mb/convert/convertSetting',
    children: [{
      path: 'convertSetting',
      component: _import('user/convert/setting/index'),
      name: 'convertSetting',
      meta: {
        title: '订单转换',
        noNavbar: true,
        noPublicBottom: true,
        noSideWidget: true,
        noZcServie: true
      }
    }, {
      path: 'convertOrderList',
      component: _import('user/convert/orderList/index'),
      name: 'convertOrderList',
      meta: { title: '兑换订单' }
    }]
  },
  // 开店礼包
  {
    path: '/mb/pack',
    component: Layout,
    redirect: '/mb/pack/storeGift',
    children: [{
      path: 'storeGift',
      component: _import('user/pack/storeGift/index'),
      name: 'storeGift',
      meta: {
        title: '开店礼包',
        noNavbar: true,
        noPublicBottom: true,
        noSideWidget: true,
        noZcServie: true
      }
    }]
  },
  // 店铺
  {
    path: '/mb/shop',
    component: Layout,
    children: [{
      path: 'index',
      component: _import('shop/index/index'),
      name: 'index',
      // 店铺主页
      meta: {
        title: '\u200E'
        // title: '店铺首页'
      }
    }, {
      path: 'storeList',
      component: _import('shop/storeList/index'),
      name: 'storeList',
      meta: {
        title: '门店列表'
      }
    },
    {
      path: 'magazine',
      component: _import('shop/magazine/index'),
      name: 'magazine',
      meta: {
        title: '\u200E',
        // title: '专题详情'
        noNavbar: true
      }
    },
    {
      path: 'magazineLists',
      component: _import('shop/magazineLists/index'),
      name: 'magazineLists',
      meta: {
        title: '\u200E'
        // title: '专题分类'
      }
    },
    {
      path: 'module',
      component: _import('shop/module/index'),
      name: 'module',
      meta: {
        title: '\u200E'
        // title: '通用模块'
        // noNavbar: true
      }
    },
    {
      path: 'supplier',
      component: _import('shop/supplier/index'),
      name: 'supplier',
      meta: {
        title: '\u200E',
        noPublicBottom: true
        // title: '供应商店铺'
        // noNavbar: true
      }
    },
    {
      path: 'storeIndex',
      component: _import('shop/storeIndex/index'),
      name: 'storeIndex',
      meta: {
        title: '门店店铺'
        // noNavbar: true
      }
    }]
  },
  // 身份申请
  {
    path: '/mb/identityApplication',
    component: Layout,
    children: [{
      path: 'dlsdhs-application',
      component: _import('identityApplication/dlsdhsApplication/index'),
      name: 'dlsdhs-application',
      meta: {
        title: '加盟申请',
        icon: 'icon'
      }
    }, {
      path: 'fxs-application',
      component: _import('identityApplication/fxsApplication/index'),
      name: 'fxs-application',
      meta: {
        title: '分销商申请',
        icon: 'icon'
      }
    }, {
      path: 'store-application',
      component: _import('identityApplication/storeApplication/index'),
      name: 'store-application',
      meta: {
        title: '门店申请',
        icon: 'icon'
      }
    }, {
      path: 'gys-application',
      component: _import('identityApplication/gysApplication/index'),
      name: 'gys-application',
      meta: {
        title: '供应商申请',
        icon: 'icon'
      }
    }]
  },
  // 全部订单
  {
    path: '/mb/order/',
    component: Layout,
    children: [{
      path: 'order-lists',
      component: _import('order/lists/index'),
      name: 'order-lists',
      meta: {
        title: '订单列表'
      }
    }, {
      path: 'orderAllLists',
      component: _import('order/allLists/index'),
      name: 'orderAllLists',
      meta: {
        title: '我的订单',
        noNavbar: true
      },
    }, {
      path: 'order-detail',
      component: _import('order/detail/index'),
      name: 'order-detail',
      meta: {
        title: '订单详情',
        noNavbar: true
      },
    }, {
      path: 'receiptOrder',
      component: _import('order/receiptOrder/index'),
      name: 'receiptOrder',
      meta: {
        title: '下单回执',
        // noPublicBottom: true,
        noNavbar: true,
        // noSideWidget: true
      }
    }, {
      path: 'buy',
      component: _import('order/buy/index'),
      name: 'buy',
      meta: {
        title: '结算中心',
        noNavbar: true,
        noSideWidget: true,
        noPublicBottom: true
      }
    }, {
      path: 'buySuccess',
      component: _import('order/buySuccess/index'),
      name: 'buySuccess',
      meta: {
        title: '支付成功',
        noNavbar: true
      }
    }, {
        path: 'buyTonglianWait',
        component: _import('order/buyTonglianWait/index'),
        name: 'buyTonglianWait',
        meta: {
          title: '支付确认',
          noNavbar: true
        }
    }, {
      path: 'peer-pay-index',
      component: _import('order/peerPay/peerPayIndex/index'),
      name: 'peer-pay-index',
      meta: {
        title: '代付',
        noNavbar: true
      }
    }, {
      path: 'peer-pay-detail',
      component: _import('order/peerPay/peerPayDetail/index'),
      name: 'peer-pay-detail',
      meta: {
        title: '代付详情',
        noNavbar: true
      }
    }, {
      path: 'complainDetail',
      component: _import('order/complainDetail/index'),
      name: 'complainDetail',
      meta: {
        title: '退换货订单详情'
      }
    }, {
      path: 'refunding',
      component: _import('order/refunding/index'),
      name: 'refunding',
      meta: {
        title: '退换货申请',
        noNavbar: true
      }
    },
    {
      path: 'refundDetail',
      component: _import('order/refundDetail/index'),
      name: 'refundDetail',
      meta: {
        title: '退款详情',
        noNavbar: true
      }
    },
    {
      path: 'modifyExpress',
      component: _import('order/modifyExpress/index'),
      name: 'modifyExpress',
      meta: {
        title: '填写物流信息',
        noNavbar: true
      }
    },
    {
      path: 'snapshot',
      component: _import('order/snapshot/index'),
      name: 'snapshot',
      meta: {
        title: '交易快照',
        noNavbar: true
      }
    },
    {
      path: 'eInvoice',
      component: _import('order/eInvoice/index'),
      name: 'eInvoice',
      meta: {
        title: '电子发票详情'
      }
    },
    {
      path: 'cycleSendDetail',
      component: _import('order/cycleSendDetail/index'),
      name: 'cycle-send-detail',
      meta: {
        title: '周期配送详情',
        noNavbar: true
      }
    },
    {
      path: 'verifyOrderByWeChat',
      component: _import('order/verifyOrderByWeChat/index'),
      name: 'verifyOrderByWeChat',
      meta: {
        title: '核销订单',
        noNavbar: true,
        noPublicBottom: true
      }
    },
    {
      path: 'verifyOrderByWeChatResult',
      component: _import('order/verifyOrderByWeChatResult/index'),
      name: 'verifyOrderByWeChatResult',
      meta: {
        title: '核销结果',
        noNavbar: true,
        // noPublicBottom: true,
        noSideWidget: true
      }
    },
    {
      path: 'storeGathering',
      component: _import('order/storeGathering/index'),
      name: 'storeGathering',
      meta: {
        title: '门店收款码',
        noPublicBottom: true
      }
    }, {
      path: 'uploadVoucher',
      component: _import('order/uploadVoucher/index'),
      name: 'uploadVoucher',
      meta: {
        title: '上传凭证',
        noNavbar: true,
        noSideWidget: true,
        noPublicBottom: true
      }
    }]
  },
  // 付款成功后公共页面
  {
    path: '/mb/public',
    component: Layout,
    children: [{
      path: 'dlsSuccess',
      component: _import('public/dlsSuccess/index'),
      name: 'dls-success',
      meta: {
        title: '订单提交成功',
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'groupSuccess',
      component: _import('public/groupSuccess/index'),
      name: 'group-success',
      meta: {
        title: '支付完成',
        noNavbar: true,
        noSideWidget: true
      }
    },
    {
      path: 'uploadSuccess',
      component: _import('public/uploadSuccess/index'),
      name: 'uploadSuccess',
      meta: {
        title: '上传成功',
        noNavbar: true,
        noSideWidget: true,
        noPublicBottom: true
      }
    }]
  },
  // 团购
  {
    path: '/mb/groupShopping/',
    component: Layout,
    children: [{
      path: 'group-list',
      component: _import('GroupShopping/groupList/index'),
      name: 'group-list',
      meta: {
        title: '拼团列表',
        noPublicBottom: true
        // noNavbar: true
      }
    }, {
      path: 'groupDetail',
      component: _import('GroupShopping/groupDetail/index'),
      name: 'groupDetail',
      meta: {
        title: '拼团成员列表',
        noPublicBottom: true,
        noNavbar: true
      }
      }, {
        path: 'backOneDetailPushX',
        component: _import('GroupShopping/backOneDetailPushX/index'),
        name: 'backOneDetailPushX',
        meta: {
          title: '成员列表',
          noPublicBottom: true,
          noNavbar: true
        }
      }, {
        path: 'activeListX',
        component: _import('GroupShopping/backOneDetailPushX/activeListX/index'),
        name: 'activeListX',
        meta: {
          title: '活动列表',
          keepAlive: true,
          noNavbar: true
        }
      },{
      // 抽奖团中奖名单
      path: 'groupPrize',
      component: _import('GroupShopping/groupPrize/index'),
      name: 'groupPrize',
      meta: {
        title: '中奖名单',
        noPublicBottom: true,
        noNavbar: true
      }
    }]
  },
  // 内购
  {
    path: '/mb/internal/',
    component: Layout,
    children: [{
      path: 'internalList',
      component: _import('internal/internalList/index'),
      name: 'internalList',
      meta: {
        title: '企业内购',
        noPublicBottom: true,
        noNavbar: true
      }
    }, {
      path: 'internalDetail',
      component: _import('internal/internalDetail/index'),
      name: 'internalDetail',
      meta: {
        title: '内购商品',
        noPublicBottom: true,
        noNavbar: true
      }
    }]
  },
  // 送礼
  {
    path: '/mb/gift/',
    component: Layout,
    children: [
      {
        path: 'gift-index',
        component: _import('gift/index'),
        name: 'gift-index',
        meta: {
          title: '送礼',
          noNavbar: true
        }
      },
      {
        path: 'gift-detail',
        component: _import('gift/giftDetail/index'),
        name: 'gift-detail',
        meta: {
          title: '送礼－详情',
          noNavbar: true
        }
      },
      {
        path: 'get-gift',
        component: _import('gift/getGift/index'),
        name: 'get-gift',
        meta: {
          title: '领取礼物',
          noNavbar: true
        }
      }
    ]
  },
  // 会员互动
  {
    path: '/mb/marketGame',
    component: Layout,
    children: [
      {
        path: 'game-list',
        component: _import('marketGame/gameList/index'),
        name: 'game-list',
        meta: {
          title: '会员互动'
        }
      },
      {
        path: 'prize-list',
        component: _import('marketGame/prizeList/index'),
        name: 'prize-list',
        meta: {
          title: '中奖列表'
        }
      },
      {
        path: 'prize-detail',
        component: _import('marketGame/prizeDetail/index'),
        name: 'prize-detail',
        meta: {
          title: '中奖详情'
        }
      }
    ]
  },
  // 营销游戏
  {
    path: '/mb/marketGame',
    component: Layout,
    children: [{
      path: 'radish-sprite',
      component: _import('marketGame/radishSprite/index'),
      name: 'radish-sprite',
      meta: {
        title: '萝卜精灵',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    }, {
      path: 'lucky-wheel',
      component: _import('marketGame/luckyWheel/index'),
      name: 'lucky-wheel',
      meta: {
        title: '幸运大转盘',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    }, {
      path: 'smash-egg',
      component: _import('marketGame/smashEgg/index'),
      name: 'smash-egg',
      meta: {
        title: '砸金蛋',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    }, {
      path: 'lucky-flop',
      component: _import('marketGame/luckyFlop/index'),
      name: 'lucky-flop',
      meta: {
        title: '好运翻翻看',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    }, {
      path: 'scrape-card',
      component: _import('marketGame/scrapeCard/index'),
      name: 'scrape-card',
      meta: {
        title: '刮刮乐',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    },{
      path: 'xyx-game',
      component: _import('marketGame/xyxGame/index'),
      name: 'xyx-game',
      meta: {
        title: '咻一咻',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    }, {
      path: 'cartoon-machine',
      component: _import('marketGame/cartoonMachine/index'),
      name: 'cartoon-machine',
      meta: {
        title: '卡通机',
        noPublicBottom: true,
        noNavbar: true,
        noSideWidget: true
      }
    }]
  },
  // 分享链接
  {
    path: '/mb/share/',
    component: Layout,
    children: [
      {
        path: 'shareGoods',
        name: 'shareGoods',
        component: _import('share/shareGoods/index'),
        meta: {
          title: '分享商品',
          noPublicBottom: true,
          noNavbar: true,
          noSideWidget: true
        }
      },
      {
        path: 'shareLink',
        name: 'shareLink',
        component: _import('share/shareLink/index'),
        meta: {
          title: '选择链接',
          noPublicBottom: true,
          noNavbar: true,
          noSideWidget: true
        }
      },
      {
        path: 'shareSelect',
        name: 'shareSelect',
        component: _import('share/shareSelect/index'),
        meta: {
          title: '选择页面',
          noPublicBottom: true,
          noNavbar: true,
          noSideWidget: true
        }
      }
    ]
  },
]

export default new Router({
  mode: 'history', // require service support
  scrollBehavior: () => ({
    y: 0
  }),
  routes: constantRouterMap
})
